import { createWebHistory, createRouter } from "vue-router";
import login from '../views/Login.vue';
import student from '../views/Student.vue';
import Warn from '../views/Warn.vue';
import evaluate from '../views/Evaluate.vue';
import gradeManage from '../views/GradeManage.vue';
import CourseManage from '../views/CourseManage.vue'
import Assessment from '../views/Assessment-records.vue';
import Trend from '../views/Trend.vue'
import GradeWarn from '../views/GradeWarn.vue'
const router = createRouter({
    history: createWebHistory(import.meta.env.BASE_URL),
    routes: [
        {
            path: '/',
            name: 'login',
            component: login,
        },
        {
            path: '/student',
            name: 'student',
            component: student,
        },
        {
            path: '/warn',
            name: 'warn',
            component: Warn,
        },
        {
            path: '/evaluate', // 新增路由
            name: 'evaluate',
            component: evaluate,
        },
        {
            path: '/gradeManage',
            name: 'gradeManage',
            component: gradeManage,
        },
        {
            path: '/courseManage',
            name: 'courseManage',
            component: CourseManage,
        },
        {
            path: '/assessment',
            name: 'assessment',
            component: Assessment,
        },
        {
            path: '/trend',
            name: 'trend',
            component: Trend,
        },
        {
            path: '/gradeWarn',
            name: 'gradeWarn',
            component: GradeWarn,
        }
    ]
});

export default router;